<template>
  <el-row :data="data">
    <el-row v-for="(item, index) in data.signModel" :key="index">
      <el-row v-if="isShowTitleFlag == true" class="signInfo-header">
        <el-col :span="12"><h4>{{ item.tableHeader }}</h4></el-col>
        <el-col v-if="item.deleteFlag" :span="12" class="txt-right">
          <i class="el-icon-circle-close warning" @click="delOperator(index)">删除</i>
        </el-col>
      </el-row>
      <div v-for="(item2, index2) in item.tableArray" :key="index2">
        <el-col v-if="!isShowFlag" :span="24" class="item-input">
          <el-col :span="12" class="line-distance">{{ item2.name }}：</el-col>
          <el-col class="line-distance" :span="12">{{ item2.value }}</el-col>
        </el-col>
        <el-col v-if="isShowFlag" :span="12" class="item-input">
          <el-col :span="12" class="line-distance">{{ item2.name }}：</el-col>
          <el-col v-if="!modifyShowFlag" class="line-distance" :span="12">{{ item2.value }}</el-col>
          <el-col v-if="modifyShowFlag" :span="12" class="line-distance item-rightSet">
            <el-input v-model="item2.value" class="sign-input" placeholder="请输入内容" />
          </el-col>
        </el-col>
      </div>
    </el-row>
  </el-row>
</template>

<script>
export default {
  name: 'BizSignInfo',
  props: ['data', 'number', 'modifyShowFlag', 'isShowFlag', 'isShowTitleFlag'],
  data() {
    return {

    }
  },
  mounted() {
    const self = this
    console.log(self.data)
  },
  methods: {
    delOperator(number) {
      this.$emit('delOperator', number)
    }
  }
}
</script>

<style scoped>
  .warning {
    color: red;
    cursor:pointer;
  }
  .signInfo-header{
    height: 26px;
    line-height: 26px;
  }
  .line-distance{
    height: 40px;
    line-height: 40px;
  }
  .item-rightSet{
    padding-right: 5px;
  }
  .sign-input{
    font-size: 12px;
    line-height: 34px;
    height: 34px;
  }
  .item-input{
    margin-bottom: 10px;
  }
</style>
